home *** CD-ROM | disk | FTP | other *** search
- Path: news-srv.essi.fr!usenet
- From: Franck Zoccolo <zoccolo@essi.fr>
- Newsgroups: comp.lang.c++
- Subject: Variable arguments and Overloading...
- Date: Wed, 07 Feb 1996 17:50:04 +0100
- Organization: Ecole Superieure en Sciences Informatiques (ESSI)
- Message-ID: <3118D83C.79CA@essi.fr>
- NNTP-Posting-Host: trinquette.essi.fr
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- I need to overload a member function which have variable arguments.
- In the body of that function, I need to call the parent implementation.
- How could I do this ??
-
- Example:
-
- class A
- {
- void foo(int x, ...);
- };
-
- class B: public A
- {
- void foo(int x, ...);
- };
-
-
- void B::foo(int x, ...)
- {
- A:foo(x, ?????????? ); // How to do that ?
- }
-
-
- Please answer by mail...
- Thanks.
-
-
- --
- Franck ZOCCOLO
- Computer Science Student.
- .
-